<?php $this->load->view('_inc/header_popup')?>
<script>
    $(document).ready(function(){
        $('#mostraSenha').mouseenter(function() {
            $('#isenha').attr('type','input');
        }).mouseleave(function() {
            $('#isenha').attr('type','password');
        });
    });
</script>

<h1>Novo Membro</h1>
<?php echo form_open('pessoa/cadastrandoMembro'); ?>
<table>
    <tr><td><?php echo form_label('Nome:','inome'); echo form_input('nome','','id="inome" autofocus class=required'); ?></td></tr>
    <tr><td><?php echo form_label('E-mail:','iemail'); echo form_input('email','','id="iemail" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Diretoria:','idiretoria'); echo form_dropdown('diretoria',$diretoria,'id="idiretoria" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Cargo:','icargo'); echo form_dropdown('cargo',$cargos,'','id="icargo" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Nucleo:','inucleo'); echo form_dropdown('nucleo',$nucleo,'id="inucleo"'); ?></td></tr>
    <tr><td><?php echo form_label('Usuario:','iusuario'); echo form_input('usuario','','id="iusuario" class=required'); ?></td></tr>
    <tr>
        <td style="width: auto">
            <?php echo form_label('Senha:','isenha'); echo form_password('senha','','id="isenha" class=required style="width: 140px"'); ?>
            <a id="mostraSenha" class="icone olho"> </a>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_submit('','Salvar') ?>
            <?php echo form_button('','Cancelar', 'class=cancela')?>
        </td>
    </tr>
</table>
<?php echo form_close(); ?>